<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>线性渐变</title>
</head>
<style>
    div{
        width: 800px;
        height: 200px;
        background: linear-gradient(to bottom,red,yellow) ;
        /*background: radial-gradient(circle,red,yellow) ;*/
    }
</style>
<body>
<div>

</div>
</body>
</html>